var APP_NAME = 'jwawa',
    BASE_DIR = '/jwawa',
    DEFAULT_FOCUS_DEFER_TIME = 20,
    FUNCTION_URL_PREFIX = '/function/invoke?enter_string=',
    CONTENT_WIN_PREFIX = 'contentWin_',
    CONTENT_PANEL_PREFIX = 'contentPanel_',
    EFL_MAPPING = '_entity_field_label',
    ENTITY_DETAIL_MODEL = '_entity_detail_model',
    DEFAULT_PAGE_SIZE = 50;
//    __globalAjaxErrorCallbackFn = null;

Ext.Loader.setConfig({
    enabled: true
});

Ext.Loader.setPath(APP_NAME, BASE_DIR);
Ext.fx.Anim.prototype.duration = 100;
Ext.Ajax.useDefaultErrorAlert = true;
//Ext.Loader.config.disableCaching = false;

//var eflMapping = {
//    sso_login_accounts: {
//        login_name: '用户名',
//        login_pwd: '口令'
//    }
//};
//
//Ext.JwawaResMgr.register(EFL_MAPPING, eflMapping);
var entityDetailModel = Ext.create('jwawa.erp.cfg.entity.EntityDetailModel');
Ext.JwawaResMgr.register(ENTITY_DETAIL_MODEL, entityDetailModel);
Ext.JwawaResMgr.register(EFL_MAPPING, {});